import {get,post,put} from '@/http/http'

// 用户兑换优惠券
function exchangeCoupons(CouponId) {
  return post('/user/coupon/exchangeCoupon/'+CouponId)
}

// 获取所有优惠券
function getCouponsList() {
  return get('/user/coupon/getCoupon')
}

// 查看用户获取的优惠券
function getUserCoupons() {
  return get('/user/coupon/getUserCoupon')
}

export default{
  getCouponsList,
  exchangeCoupons,
  getUserCoupons
}